package com.type;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;

public class Person extends Photo {
	private long phoneNumber;

	public Person() {
		super();
	}
	
	public long getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(long phoneNumber) {
		this.phoneNumber = phoneNumber;
	}
	
	
	@Override
	public void receive(DataInputStream dis) throws IOException, InterruptedException {
		super.receive(dis);
		phoneNumber = dis.readLong();
	}

	@Override
	public void send(DataOutputStream dos) throws IOException, InterruptedException {
		super.send(dos);
		dos.writeLong(phoneNumber);
	}
}